import React from "react";
import {Tag} from "antd";

/**
 * 根据用户状态信息解析Tag标签
 * @param status 用户状态信息
 * @return Tag标签
 */
export const userStatusToTag = (status: boolean): React.ReactNode => {
    return <Tag color={status ? "#17510d" : "#6a0707"}>{status ? "NORMAL" : "EXCEPTION"}</Tag>;
}